﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Akso.Entities
{
    /// <summary>
    /// 辅助核算，带审计和软删除。
    /// </summary>
    [Table("Finance_BillOtherChecks")] //对应数据库的表名，建议规则：模块名+实体名。
    public class BillOtherCheck: FullAuditedEntity<Guid>
    {
        public const int MaxNameLength = 50;
        public const int MaxeCheckTypeLength = 20;
        public const int MaxRemarkLength = 200;
        /// <summary>
        /// 核算名称
        /// </summary>
        [Required]//字段必填   
        [MaxLength(MaxNameLength)]
        public virtual string CheckName { get; set; }
        /// <summary>
        /// 核算类别
        /// </summary>
        [MaxLength(MaxeCheckTypeLength)]
        public virtual string CheckType { get; set;  }
        public virtual int CheckTypeId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(MaxRemarkLength)]
        public virtual string Remark { get; set; }
    }
}
